package cate.game.role.farm.island.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBIsland;
import cate.game.play.param.HpExtend;
import cate.game.role.farm.island.cell.FightSideCell;
import easy.java.dev.note.NoteField;

import java.util.HashSet;
import java.util.Set;

@ClientMsg(title = "迷失神庙守卫详情の 返回")
public class IslandGuardResp implements MsgOutput {

    @NoteField(value = "关卡")
    public int level;

    @NoteField(value = "横坐标")
    public int x;

    @NoteField(value = "守卫ID")
    public int guardId;

    @NoteField(value = "守卫分组ID")
    public int guardGroupId;

    @NoteField("一队等级")
    public int guardLevel;

    @NoteField("二队等级")
    public int guardTwoLevel;

    @NoteField("1队战力")
    public long power;

    @NoteField("2队战力")
    public long powerTwo;

    @NoteField(value = "怪物血量继承")
    public HpExtend hpExtend;

    @NoteField(value = "战斗胜利的次数")
    public byte winTimes;

    public IslandGuardResp(int level, int x, FightSideCell cell) {
        this.level = level;
        this.x = x;
        this.guardId = cell.guardId;
        this.guardGroupId = cell.guardGroupId;
        this.guardLevel = cell.guardLevel;
        this.guardTwoLevel = cell.guardTwoLevel;
        this.power = cell.power;
        this.powerTwo = cell.powerTwo;
        this.hpExtend = cell.hpExtend;
        this.winTimes = cell.winTimes;
    }

    public IslandGuardResp() {}

    @Override
    public MsgConfig conf() {
        return MsgIdBIsland.GUARD_RESP;
    }
}
